package com.sxj.corejava.code09_集合.List;

import java.util.Arrays;
import java.util.Enumeration;
import java.util.Vector;

/**
 * @author 石小俊
 * 2024年07月24日 14:34
 */
public class Test09_Vector {

    public static void main(String[] args) {
        Vector<Integer> list = new Vector(Arrays.asList(1,2,3,4,5));
        System.out.println(list);

        Enumeration<Integer> elements = list.elements();
        while (elements.hasMoreElements()){
            Integer num = elements.nextElement();
            System.out.print(num+"\t");
        }

    }

}
